|
|
|
|
<WLanguageCodeFormatting>.Format (Function) In french: <CodeWLangageMiseEnForme>.MetEnForme Applies formatting to WLanguage code: syntax highlighting, style standardization, indentation, translation, etc.
sCode is ANSI string = "
CodeFormatting is WLanguageCodeFormatting
CodeFormatting.Language = languageEnglish
CodeFormatting.Indentation = True
CodeFormatting.IncludeCSSDeclarations = True
CodeFormatting.IgnoreCompilationError = True
CodeFormatting.KeywordCase = WLangageCodeKeywordLowercase
CodeFormatting.Theme = WLanguageCodeThemeDark
CodeFormatting.Format = WLanguageCodeFormatHTML
bufHTMLRes is Buffer = CodeFormatting.Format(sCode)
"
CodeFormatting is WLanguageCodeFormatting
CodeFormatting.Language = languageEnglish
CodeFormatting.Indentation = True
CodeFormatting.IncludeCSSDeclarations = True
CodeFormatting.IgnoreCompilationError = True
CodeFormatting.KeywordCase = WLangageCodeKeywordLowercase
CodeFormatting.Theme = WLanguageCodeThemeDark
CodeFormatting.Format = WLanguageCodeFormatHTML
bufHTMLRes is Buffer = CodeFormatting.Format(sCode)
HTM_NoName1 = bufHTMLRes.UTF8ToString()
Syntax
<Result> = <Parameters to use>.Format(<Code to format>)
<Result>: Character string Formatted WLanguage code. <Parameters to use>: WLangageCodeFormatting variable Name of the WLanguageCodeFormatting variable containing the code formatting parameters. <Code to format>: Character string Code to format. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|